package com.itheima.myset;

import java.util.ArrayList;
import java.util.Comparator;
import java.util.Scanner;
import java.util.TreeSet;

public class Scanar {
    public static void main(String[] args) {
        TreeSet<Double> arrayList = new TreeSet<>();
        Scanner scanner = new Scanner(System.in);
        while (true){
            System.out.println("请录入:");
            Double d=scanner.nextDouble();
            if (d==886){
                break;
            }
            arrayList.add(d);
        }
        System.out.println(arrayList);
    }
}
